package cn.yshujia.ex;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.extern.slf4j.Slf4j;

/**
 * @author YShuJia
 * @description 自定义异常
 * @create 2024/4/23
 */

@EqualsAndHashCode (callSuper = true)
@Slf4j
@Data
public class DefineExceptionHandler extends Exception{
	
	private Integer code;
	
	private String message;
	
	public DefineExceptionHandler(Integer code, String message) {
		super(message);
		this.code = code;
		this.message = message;
	}
}
